package com.jing.servlets;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class PageServlet
 */
public class PageServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub

		response.setCharacterEncoding("UTF-8");

		//{"pageCountSIZE":"10","tagPageSIZE":"","countPAGE":"26","PAGE":"1","countSIZE":"257","SIZE":"10","DATA":[{"addtime":"2012-07-23 14:11:17","content":"在马路上看到个老奶奶摔倒在街上，我跑过去把老奶奶扶起来，结果看样子她又要倒下，我想着估计要讹诈我钱，我果断先倒地，在地上不停抽搐并且口吐白沫，老奶奶一下呆了，我边抽动边蠕动，大概蠕动到了两米之外，爬起来拍了拍灰走了，老奶奶还楞在原地发呆 。。。","downnum":"0","id":"257","isdel":"0","recommend":"0","smstypeid":"13","title":"在马路上看到个老奶奶摔倒在街","username":"yuejing"},{"addtime":"2012-07-17 20:17:14","content":"一个漂亮女人和一个帅哥在吃KFC，说了句“没事的，我们还有的是时间，我老公是做IT的，他现在还在加班呢！”","downnum":"0","id":"256","isdel":"0","recommend":"0","smstypeid":"5","title":"一个漂亮女人和一个帅哥","username":"yuejing"},{"addtime":"2012-07-16 13:35:05","content":"刚入学的时候，全班自我介绍。一男同学走上讲台：“我叫尤勇，来自北京，我爱下棋！”说完就下去了，下一位是个女生，该女娇羞地走上讲台，忐忑不安地自我介绍：“我…我叫夏琪…我喜欢游泳“","downnum":"0","id":"255","isdel":"0","recommend":"0","smstypeid":"5","title":"刚入学的时候，全班自我介绍","username":"yuejing"},{"addtime":"2012-07-05 23:01:28","content":"朋友，本是知情、知己、友情人，一天不见非常想念，两天不见非常挂念，几天不见非常怀念，祝你新年财运亨通，吉祥如意！","downnum":"0","id":"254","isdel":"0","recommend":"0","smstypeid":"15","title":"朋友，本是知情、知己、友情","username":"yuejing"},{"addtime":"2012-07-05 23:01:13","content":"你的祝福我收到，你的关心我知道，天天想着你的好，一生一世忘不了，人生知己最难找，有幸我们碰的巧，闲暇希望常聊聊，别怨互相在打扰，真情比浪高！","downnum":"1","id":"253","isdel":"0","recommend":"1","smstypeid":"15","title":"你的祝福我收到，你的关心","username":"yuejing"},{"addtime":"2012-07-05 23:00:57","content":"美丽的彩虹在雨后，真心的想念在别后，好运好梦好心情在你收到短信后，亲爱的朋友，真心希望这一刻，幸福美妙就在你身旁。","downnum":"0","id":"252","isdel":"0","recommend":"0","smstypeid":"15","title":"美丽的彩虹在雨后，真心的想念在","username":"yuejing"},{"addtime":"2012-07-05 23:00:35","content":"花是牡丹最美，人为朋友最亲，交友不交金和银，只交朋友一颗心。水流千里归大海，人走千里友谊在，大树之间根连根，朋友之间心连心。","downnum":"0","id":"251","isdel":"0","recommend":"1","smstypeid":"15","title":"花是牡丹最美，人为朋友最亲","username":"yuejing"},{"addtime":"2012-07-05 23:00:19","content":"好听的故事没有结局，真挚的友谊不用言语，惦念的朋友才有短信，祝福的电波不会休息，美好的向往没有距离，问候的短信表达心意！","downnum":"0","id":"250","isdel":"0","recommend":"0","smstypeid":"15","title":"好听的故事没有结局，真挚的","username":"yuejing"},{"addtime":"2012-07-05 23:00:03","content":"风是透明的，雨是滴答的，云是流动的，歌是自由的，爱是用心的，恋是疯狂的，天是永恒的，你是难忘的。","downnum":"0","id":"249","isdel":"0","recommend":"0","smstypeid":"15","title":"风是透明的，雨是滴答的","username":"yuejing"},{"addtime":"2012-07-05 22:59:44","content":"方寸间，历数世上桑田沧海；时空里，细问人间暑往寒来；是朋友，星移斗转情不改；是知音，天涯海角记心怀。","downnum":"0","id":"248","isdel":"0","recommend":"0","smstypeid":"15","title":"方寸间，历数世上桑田沧海","username":"yuejing"}]}
		String result = "{\"pageCountSIZE\":\"10\",\"tagPageSIZE\":\"\",\"countPAGE\":\"26\",\"PAGE\":\"1\",\"countSIZE\":\"257\",\"SIZE\":\"10\",\"DATA\":[{\"addtime\":\"2012-07-23 14:11:17\",\"content\":\"在马路上看到个老奶奶摔倒在街上，我跑过去把老奶奶扶起来，结果看样子她又要倒下，我想着估计要讹诈我钱，我果断先倒地，在地上不停抽搐并且口吐白沫，老奶奶一下呆了，我边抽动边蠕动，大概蠕动到了两米之外，爬起来拍了拍灰走了，老奶奶还楞在原地发呆 。。。\",\"downnum\":\"0\",\"id\":\"257\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"13\",\"title\":\"在马路上看到个老奶奶摔倒在街\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-17 20:17:14\",\"content\":\"一个漂亮女人和一个帅哥在吃KFC，说了句“没事的，我们还有的是时间，我老公是做IT的，他现在还在加班呢！”\",\"downnum\":\"0\",\"id\":\"256\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"5\",\"title\":\"一个漂亮女人和一个帅哥\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-16 13:35:05\",\"content\":\"刚入学的时候，全班自我介绍。一男同学走上讲台：“我叫尤勇，来自北京，我爱下棋！”说完就下去了，下一位是个女生，该女娇羞地走上讲台，忐忑不安地自我介绍：“我…我叫夏琪…我喜欢游泳“\",\"downnum\":\"0\",\"id\":\"255\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"5\",\"title\":\"刚入学的时候，全班自我介绍\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:01:28\",\"content\":\"朋友，本是知情、知己、友情人，一天不见非常想念，两天不见非常挂念，几天不见非常怀念，祝你新年财运亨通，吉祥如意！\",\"downnum\":\"0\",\"id\":\"254\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"15\",\"title\":\"朋友，本是知情、知己、友情\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:01:13\",\"content\":\"你的祝福我收到，你的关心我知道，天天想着你的好，一生一世忘不了，人生知己最难找，有幸我们碰的巧，闲暇希望常聊聊，别怨互相在打扰，真情比浪高！\",\"downnum\":\"1\",\"id\":\"253\",\"isdel\":\"0\",\"recommend\":\"1\",\"smstypeid\":\"15\",\"title\":\"你的祝福我收到，你的关心\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:00:57\",\"content\":\"美丽的彩虹在雨后，真心的想念在别后，好运好梦好心情在你收到短信后，亲爱的朋友，真心希望这一刻，幸福美妙就在你身旁。\",\"downnum\":\"0\",\"id\":\"252\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"15\",\"title\":\"美丽的彩虹在雨后，真心的想念在\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:00:35\",\"content\":\"花是牡丹最美，人为朋友最亲，交友不交金和银，只交朋友一颗心。水流千里归大海，人走千里友谊在，大树之间根连根，朋友之间心连心。\",\"downnum\":\"0\",\"id\":\"251\",\"isdel\":\"0\",\"recommend\":\"1\",\"smstypeid\":\"15\",\"title\":\"花是牡丹最美，人为朋友最亲\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:00:19\",\"content\":\"好听的故事没有结局，真挚的友谊不用言语，惦念的朋友才有短信，祝福的电波不会休息，美好的向往没有距离，问候的短信表达心意！\",\"downnum\":\"0\",\"id\":\"250\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"15\",\"title\":\"好听的故事没有结局，真挚的\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 23:00:03\",\"content\":\"风是透明的，雨是滴答的，云是流动的，歌是自由的，爱是用心的，恋是疯狂的，天是永恒的，你是难忘的。\",\"downnum\":\"0\",\"id\":\"249\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"15\",\"title\":\"风是透明的，雨是滴答的\",\"username\":\"yuejing\"},{\"addtime\":\"2012-07-05 22:59:44\",\"content\":\"方寸间，历数世上桑田沧海；时空里，细问人间暑往寒来；是朋友，星移斗转情不改；是知音，天涯海角记心怀。\",\"downnum\":\"0\",\"id\":\"248\",\"isdel\":\"0\",\"recommend\":\"0\",\"smstypeid\":\"15\",\"title\":\"方寸间，历数世上桑田沧海\",\"username\":\"yuejing\"}]}";
		response.getWriter().print(result);
	}

}
